//
//  SMShared.m
//  lishiminOC
//
//  Created by p2p on 16/10/12.
//  Copyright © 2016年 p2p. All rights reserved.
//

#import "SMShared.h"

@implementation SMShared

+ (SMShared *)sharedManager{
    static SMShared *sharedSMSharedManagerInstance = nil;
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        sharedSMSharedManagerInstance = [[self alloc]init];
    });
    return sharedSMSharedManagerInstance;
}

- (UIInterfaceOrientationMask)interfaceOrientationMask{
    if (self.flag == 1) {
        return UIInterfaceOrientationMaskLandscape;
    } else {
        return UIInterfaceOrientationMaskPortrait;
    }
}
@end
